import request from '@/utils/request'

export default {
    addVideo(eduVideo) {
        return request({
            url: `/eduservice/video/`,
            method: 'post',
            data : eduVideo
        })
    },
    getVideo(id) {
        return request({
            url: `/eduservice/video/${id}`,
            method: 'get',
        })
    },
    removeVideo(id) {
        return request({
            url: `/eduservice/video/${id}`,
            method: 'delete',
        })
    },
    updateVideo(eduVideo) {
        return request({
            url: `/eduservice/video/${eduVideo.id}`,
            method: 'put',
            data : eduVideo
        })
    },
}

